import request from '../utils/request'

// 登录接口 /login
export const login = (data)=>{
    return request.post('/login',data)
}

// 获取首页数据 /Index/index
export const indexData = ()=>{
    return request.get('/Index/index')
}

// 获取订单详情 /h5/companion
export const getCompanion = ()=>{
    return request.get('/h5/companion')
}

// 创建订单 /createOrder
export const createOrder = (data)=>{
    return request.post('/createOrder',data)
}

// 获取订单列表 /order/list
export const getOrderList = (params)=>{
    return request.get('/order/list',{params})
}

// 订单详情 /order/detail
export const getDetail = (params)=>{
    return request.get('/order/detail',{params})
}